package com.w.wx.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
public class CommentsReply {
    private Integer rid;

    private Integer commentId;

    private String fromOpenid;

    private String fromName;

    private String fromAvatar;

    private String toOpenid;

    private String toName;

    private String toAvatar;

    private String content;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer likeNum;

    private Integer userState;

    private Integer likeState;

    public CommentsReply(String fromOpenid) {
        this.fromOpenid = fromOpenid;
    }
}